<!-- 注册 -->
<a name="register"></a>
<div id="register">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'register-form',
	'action'=>'site/register',
	'enableClientValidation'=>true,
	'enableAjaxValidation'=>true,
	'clientOptions'=>array(
	'validateOnSubmit'=>true,
	),
)); ?>
	<p class="bred">用户注册</p>
	<div class="lo_container">
		<p class="m20">用户名</p>
		<?php 
			echo $form->textField($model,"username",array('class'=>'input_area m10')); 
			echo $form->error($model,'username');
		?>
		<p class="m20">邮箱</p>
		<?php 
			echo $form->textField($model,"email",array('class'=>'input_area m10'));
			echo $form->error($model,'email');
		 ?>
		<p class="m20">密码</p>
		<?php 
			echo $form->passwordField($model,"password",array('class'=>'input_area m10'));
			echo $form->error($model,'password');
		 ?>
		<p class="m20">确认密码</p>
		<?php 
			echo $form->passwordField($model,"passwordTow",array('class'=>'input_area m10'));
			echo $form->error($model,'passwordTow');
		?>		
		<p class="m20"><?php echo $form->checkbox($model,'checkRules'); ?>我已我已经认真阅读并同意佐名片的《<span class="cb">使用协议</span>》</p>
		<?php echo $form->error($model,'checkRules'); ?>
		<div class="bhover">
		<?php 
			echo CHtml::submitButton('register',array('class'=>'buttom','value'=>'注册'));
		?>
		</div>
	</div>
	<?php $this->endWidget(); ?>
</div>